'use strict'
const path=require('path')
function resolve(dir){
  return path.join(__dirname,dir)
}
const name='云水湾旅游景区'
const port =3000
module.exports = {
  publicPath: '/',
  outputDir: 'dist',
  assetsDir: 'static',
  lintOnSave: false,
  productionSourceMap: false,
  devServer: {
    https: true,
    port: port,
    open: true,
    overlay: {
      warnings: false,
      compress: true,
      https:false,
      errors: true
    },
    //关闭NetWork
    // public: require('os').networkInterfaces()[Object.keys(require('os').networkInterfaces())[0]][1].address + ':' + port,//设置访问ip端口
  },
 chainWebpack: config =>{
    config.resolve.alias.set("@",resolve("src"))
   config.plugin('html').tap(arg =>{
     arg[0].title=name;
     return arg
   })
 }

}
